Skip to content

[MIG] web_select_all_companies: Migration to 18.0 - #3813

Open
SirPyTech wants to merge 9 commits into
OCA:18.0from
PyTech-SRL:18.0-mig-web_select_all_companies
Open

SirPyTech wants to merge 9 commits into
OCA:18.0from
PyTech-SRL:18.0-mig-web_select_all_companies

Conversation

@SirPyTech

Copy link
Copy Markdown
Contributor

Migration from 16.0 (https://github.com/OCA/web/tree/701a980e7ab785f3372fd4e26cf285bab1baab0e/web_select_all_companies).
Supersede #3340 because the author has not replied in months.

As written in superseded PR, Odoo core itself added this feature but only if the user can access at least 10 companies (https://github.com/odoo/odoo/blob/d4e6fd3ab9bf36ff5e96e98925933c54f5c7fdb0/addons/web/static/src/webclient/switch_company_menu/switch_company_menu.js#L196).
After the migration, this module simply updates that threshold so that the new feature is enabled as soon as the user has 2 companies.

@OCA-git-bot OCA-git-bot added series:18.0 mod:web_select_all_companies Module web_select_all_companies labels Nov 19, 2026
@SirPyTech
SirPyTech force-pushed the 18.0-mig-web_select_all_companies branch from 9b8f8c6 to aa23997 Compare November 19, 2026 10:36
@SirPyTech

Copy link
Copy Markdown
Contributor Author

@DorianMAG @JulienMartinez @flotho @tarteo you seemed interested in the other migration #3340, would you like to have a look at this one too? Thanks!

@HekkiMelody

Copy link
Copy Markdown
Contributor

Code and functional review, LGTM

Thank you, this simplifies the module greatly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:web_select_all_companies Module web_select_all_companies series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants